Skip to content

Commit

Permalink
fix: solve testcase race condition problem
Browse files Browse the repository at this point in the history
  • Loading branch information
samwang0723 committed Jul 15, 2024
1 parent 1271fcc commit 38b86f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/helper/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"flag"
"math"
"os"
"reflect"
"strconv"
"testing"
"time"
Expand Down Expand Up @@ -254,8 +253,8 @@ func TestKeys(t *testing.T) {

for _, test := range tests {
result := helper.Keys(test.input)
if !reflect.DeepEqual(result, test.expected) {
t.Errorf("Keys(%v) = %v; want %v", test.input, result, test.expected)
if !cmp.Equal(result, test.expected) {
t.Errorf("Query diff = %v", cmp.Diff(test.input, test.expected))
}
}
}
Expand Down

0 comments on commit 38b86f5

Please sign in to comment.