Codebase list golang-github-go-kit-kit / 6e5c91d
Replace `bytes.Compare` with `bytes.Equal` shubhendra authored 3 years ago Mark Sagi-Kazar committed 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6262 if want, have := sessionTimeout, clientImpl.sessionTimeout; want != have {
6363 t.Errorf("want %d, have %d", want, have)
6464 }
65 if want, have := payload, clientImpl.rootNodePayload; bytes.Compare(want[0], have[0]) != 0 || bytes.Compare(want[1], have[1]) != 0 {
65 if want, have := payload, clientImpl.rootNodePayload; !bytes.Equal(want[0], have[0]) || !bytes.Equal(want[1], have[1]) {
6666 t.Errorf("want %s, have %s", want, have)
6767 }
6868