浏览代码

simple compare statement

Diego Alvarez 5 年之前
父节点
当前提交
f6fb4afcdd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      balance_strategy_test.go

+ 1 - 1
balance_strategy_test.go

@@ -2008,7 +2008,7 @@ func Test_stickyBalanceStrategy_Plan_AssignmentData(t *testing.T) {
 	if err != nil {
 		t.Errorf("Error building assignment data: %v", err)
 	}
-	if bytes.Compare(expected, actual) != 0 {
+	if !bytes.Equal(expected, actual) {
 		t.Error("Invalid assignment data returned from AssignmentData")
 	}
 }