From e78255cba2a1fa07e8345ccd631093f01e8b574d Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 16 Oct 2019 20:57:13 -0500 Subject: [PATCH] cs: only assert important stuff --- consensus/wal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/wal_test.go b/consensus/wal_test.go index 442cdb6fc..47a208758 100644 --- a/consensus/wal_test.go +++ b/consensus/wal_test.go @@ -135,7 +135,7 @@ func TestWALWrite(t *testing.T) { } err = wal.Write(msg) if assert.Error(t, err) { - assert.Equal(t, "msg is too big: 1048593 bytes, max: 1048576 bytes", err.Error()) + assert.Contains(t, err.Error(), "msg is too big") } }