From 71962625bc8bdf90935a6a6522f734a742f2c9c5 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sun, 10 Oct 2021 11:16:06 +0200 Subject: [PATCH] check if status in db --- internal/federation/federatingdb/create_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/federation/federatingdb/create_test.go b/internal/federation/federatingdb/create_test.go index 645a009ee..ee2194f9e 100644 --- a/internal/federation/federatingdb/create_test.go +++ b/internal/federation/federatingdb/create_test.go @@ -19,6 +19,7 @@ package federatingdb_test import ( + "context" "testing" "github.com/stretchr/testify/suite" @@ -55,6 +56,10 @@ func (suite *CreateTestSuite) TestCreateNote() { // status should have some expected values suite.Equal(requestingAccount.ID, status.AccountID) suite.Equal("hey zork here's a new private note for you", status.Content) + + // status should be in the database + _, err = suite.db.GetStatusByID(context.Background(), status.ID) + suite.NoError(err) } func (suite *CreateTestSuite) TestCreateNoteForward() {