Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Jan 8, 2024
1 parent 101a7b3 commit 164fc97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions domain/cache/routes_overwrite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ func TestRoutesOverwrite_Get(t *testing.T) {
// Assuming Set method is working correctly.
// Setting up some initial data for testing Get method.

r := cache.NewRoutesOverwrite()
r.Set("key1", "value1")
r.Set("key2", "value2")

tests := []struct {
name string
isRoutesOverwriteEnabled bool
Expand Down Expand Up @@ -91,6 +87,10 @@ func TestRoutesOverwrite_Get(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
r := cache.CreateRoutesOverwrite(tt.isRoutesOverwriteEnabled)
r.Set("key1", "value1")
r.Set("key2", "value2")

value, exists := r.Get(tt.key)

if value != tt.expectedValue || exists != tt.expectedExists {
Expand Down

0 comments on commit 164fc97

Please sign in to comment.