Skip to content

Commit

Permalink
Update story author testcase
Browse files Browse the repository at this point in the history
Fixes unique index violation on users.
  • Loading branch information
RichDom2185 committed Jul 25, 2023
1 parent b194c1f commit 4737778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/stories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4737778

Please sign in to comment.