diff --git a/indexedDb/impl/channels/implementation_test.go b/indexedDb/impl/channels/implementation_test.go index 1a8c87f0792a71ab6274e4e82f7ef075bd17e5f7..9688c6714c6da34a5395e328865745b311580a30 100644 --- a/indexedDb/impl/channels/implementation_test.go +++ b/indexedDb/impl/channels/implementation_test.go @@ -24,6 +24,7 @@ import ( "github.com/hack-pad/go-indexeddb/idb" jww "github.com/spf13/jwalterweatherman" + "github.com/stretchr/testify/require" "gitlab.com/elixxir/client/v4/channels" "gitlab.com/elixxir/client/v4/cmix/rounds" @@ -228,8 +229,12 @@ func Test_wasmModel_UpdateSentStatus(t *testing.T) { t.Fatal(err) } + cid, err := id.NewRandomID(csprng.NewSystemRNG(), + id.DummyUser.GetType()) + require.NoError(t, err) + // Store a test message - testMsg := buildMessage([]byte(testString), testMsgId.Bytes(), nil, + testMsg := buildMessage(cid.Bytes(), testMsgId.Bytes(), nil, testString, []byte(testString), []byte{8, 6, 7, 5}, 0, 0, netTime.Now(), time.Second, 0, 0, false, false, channels.Sent) uuid, err2 := eventModel.upsertMessage(testMsg)