From 9c30098a11a9f1c7e5c7219470006527b7a7a338 Mon Sep 17 00:00:00 2001 From: "Richard T. Carback III" <rick.carback@gmail.com> Date: Wed, 24 May 2023 03:11:30 +0000 Subject: [PATCH] Fix test --- indexedDb/impl/channels/implementation_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indexedDb/impl/channels/implementation_test.go b/indexedDb/impl/channels/implementation_test.go index 1a8c87f0..9688c671 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) -- GitLab