Skip to content

Commit

Permalink
fix: make server tests independent of each other
Browse files Browse the repository at this point in the history
by removing all keys from Redis before each test
  • Loading branch information
fedragon committed Dec 6, 2024
1 parent 5c42bb2 commit 27dd9e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/server_stage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func NewServerStage(t *testing.T) *ServerStage {
})
repo := db.NewRedisRepository(client)

// Remove all keys from Redis
client.FlushDB(context.Background())

handler := &server.Handler{
Repo: repo,
ArchivePath: "./archive",
Expand Down

0 comments on commit 27dd9e1

Please sign in to comment.