From 473777858da088a8efb0379b00dcdc52ebd25509 Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Tue, 25 Jul 2023 18:52:44 +0800 Subject: [PATCH] Update story author testcase Fixes unique index violation on users. --- model/stories_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/stories_test.go b/model/stories_test.go index 320a164..db42f29 100644 --- a/model/stories_test.go +++ b/model/stories_test.go @@ -37,7 +37,7 @@ func TestCreateStory(t *testing.T) { // We need to first create a user due to the foreign key constraint user := User{ - Username: "testUsername", + Username: "testStoryAuthor", LoginProvider: 123, } _ = CreateUser(db, &user)