Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaizanse committed Jan 2, 2024
1 parent 49bed24 commit 5ce9dcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/setup/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ func Test_ConfigMap(t *testing.T) {

cmMap := cmToMap(cm.Data["nats.conf"])

if err := checkValueInCMMap(cmMap, "max_file", FileStorageSize); err != nil {
if err := checkValueInCMMap(cmMap, "max_file_store", FileStorageSize); err != nil {
return err
}

if err := checkValueInCMMap(cmMap, "max_mem", MemStorageSize); err != nil {
if err := checkValueInCMMap(cmMap, "max_memory_store", MemStorageSize); err != nil {
return err
}

Expand Down
4 changes: 2 additions & 2 deletions testutils/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func (env TestEnvironment) EnsureNATSSpecFileStorageReflected(t *testing.T, nats
}

// check if file storage size is correctly defined in NATS config.
if !strings.Contains(natsConfigStr, fmt.Sprintf("max_file: %s", nats.Spec.FileStorage.Size.String())) {
if !strings.Contains(natsConfigStr, fmt.Sprintf("max_file_store: %s", nats.Spec.FileStorage.Size.String())) {
return false
}

Expand Down Expand Up @@ -529,7 +529,7 @@ func (env TestEnvironment) EnsureNATSSpecMemStorageReflected(t *testing.T, nats
}

// check if mem storage size is correctly defined in NATS config.
return strings.Contains(natsConfigStr, fmt.Sprintf("max_mem: %s", nats.Spec.MemStorage.Size.String()))
return strings.Contains(natsConfigStr, fmt.Sprintf("max_memory_store: %s", nats.Spec.MemStorage.Size.String()))
}, SmallTimeOut, SmallPollingInterval, "failed to ensure NATS CR Spec.jetStream.memStorage")
}

Expand Down

0 comments on commit 5ce9dcd

Please sign in to comment.