OSDN Git Service

fix order table test
[bytom/vapor.git] / application / mov / match / order_table_test.go
index fec1340..1235e5f 100644 (file)
@@ -174,7 +174,7 @@ func TestOrderTable(t *testing.T) {
                                continue
                        }
 
-                       if wantOrder != nil && gotOrder != nil && gotOrder.Key() != wantOrder.Key() {
+                       if gotOrder.Key() != wantOrder.Key() {
                                t.Errorf("#%d(%s):the key of got order(%v) is not equals key of want order(%v)", i, c.desc, gotOrder, wantOrder)
                        }
                }