Skip to content

Commit

Permalink
chore : remove debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
c-harish committed Nov 4, 2024
1 parent 88179e7 commit 04db396
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions integration_tests/commands/async/object_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package async

import (
"fmt"
"testing"
"time"

Expand Down Expand Up @@ -124,7 +123,6 @@ func TestObjectCommand(t *testing.T) {

result := FireCommand(conn, cmd)

fmt.Println(cmd, result, tc.expected[i])
if tc.assertType[i] == "equal" {
assert.Equal(t, tc.expected[i], result)
} else {
Expand Down
2 changes: 0 additions & 2 deletions integration_tests/commands/http/hvals_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package http

import (
"fmt"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -42,7 +41,6 @@ func TestHVals(t *testing.T) {

for i, cmd := range tc.commands {
result, _ := cmdExec.FireCommand(cmd)
fmt.Printf("%v | %v\n", result, tc.expected[i])
switch e := tc.expected[i].(type) {
case []interface{}:
assert.ElementsMatch(t, e, tc.expected[i])
Expand Down
5 changes: 2 additions & 3 deletions integration_tests/commands/http/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,6 @@ func TestJSONMGET(t *testing.T) {
},
})

fmt.Printf("expacting: %s with got: %s\n", "OK", resp)
assert.Equal(t, "OK", resp)
}

Expand Down Expand Up @@ -1433,8 +1432,8 @@ func TestJsonObjKeys(t *testing.T) {
if _, ok := result.([]interface{}); ok {
assert.ElementsMatch(t, tc.expected[i].([]interface{}), result.([]interface{}))
} else {
// handle the case where result is not a []interface{}
assert.Equal(t, tc.expected[i], result)
// handle the case where result is not a []interface{}
assert.Equal(t, tc.expected[i], result)
}

}
Expand Down
3 changes: 0 additions & 3 deletions internal/eval/eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3254,15 +3254,12 @@ func testEvalHVALS(t *testing.T, store *dstore.Store) {

response := evalHVALS(tt.input, store)

fmt.Printf("Eval Response: %v\n", response)

// Handle comparison for byte slices
if responseBytes, ok := response.Result.([]byte); ok && tt.migratedOutput.Result != nil {
if expectedBytes, ok := tt.migratedOutput.Result.([]byte); ok {
assert.True(t, bytes.Equal(responseBytes, expectedBytes), "expected and actual byte slices should be equal")
}
} else {
fmt.Printf("G1: %v | %v\n", response.Result, tt.migratedOutput.Result)
switch e := tt.migratedOutput.Result.(type) {
case []interface{}, []string:
assert.ElementsMatch(t, e, response.Result)
Expand Down

0 comments on commit 04db396

Please sign in to comment.