Skip to content

Commit

Permalink
failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Aug 21, 2024
1 parent 1d77e3d commit d7ffdd6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/database_config/ee-cache-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bucket": "default",
"cache": {
"rev_cache": {
"size": 5000,
"max_item_count": 5000,
"shard_count": 8
},
"channel_cache": {
Expand Down
2 changes: 1 addition & 1 deletion examples/legacy_config/ee-cache-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"enable_star_channel":true
},
"rev_cache":{
"size":5000,
"max_item_count":5000,
"shard_count":8
}
}
Expand Down
2 changes: 1 addition & 1 deletion rest/adminapitest/admin_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ func TestHandleDBConfig(t *testing.T) {

gotRevcache, ok := gotcache["rev_cache"].(map[string]interface{})
require.True(t, ok)
gotRevcacheSize, ok := gotRevcache["size"].(json.Number)
gotRevcacheSize, ok := gotRevcache["max_item_count"].(json.Number)
require.True(t, ok)
gotRevcacheSizeInt, err := gotRevcacheSize.Int64()
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion rest/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestBootstrapRESTAPISetup(t *testing.T) {

// upsert 1 config field
resp = BootstrapAdminRequest(t, sc, http.MethodPost, "/db1/_config",
`{"cache": {"rev_cache":{"size":1234}}}`,
`{"cache": {"rev_cache":{"max_item_count":1234}}}`,
)
resp.RequireStatus(http.StatusCreated)

Expand Down
2 changes: 1 addition & 1 deletion rest/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func TestConfigValidationDeltaSync(t *testing.T) {
}

func TestConfigValidationCache(t *testing.T) {
jsonConfig := `{"databases": {"db": {"cache": {"rev_cache": {"size": 0}, "channel_cache": {"max_number": 100, "compact_high_watermark_pct": 95, "compact_low_watermark_pct": 25}}}}}`
jsonConfig := `{"databases": {"db": {"cache": {"rev_cache": {"max_item_count": 0}, "channel_cache": {"max_number": 100, "compact_high_watermark_pct": 95, "compact_low_watermark_pct": 25}}}}}`
ctx := base.TestCtx(t)
buf := bytes.NewBufferString(jsonConfig)
config, err := readLegacyServerConfig(ctx, buf)
Expand Down

0 comments on commit d7ffdd6

Please sign in to comment.