Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwootto committed Apr 23, 2024
1 parent 28f1127 commit c65f967
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func BenchmarkClient_VariableParallel(b *testing.B) {
}
if benchmarkEnableConfigUpdates && configCounter.Add(1)%10000 == 0 {
go func() {
err = client.configManager.setConfig([]byte(test_large_config), "")
err = client.configManager.setConfig([]byte(test_large_config), "", "")
setConfigCount.Add(1)
}()
}
Expand Down
8 changes: 7 additions & 1 deletion configmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ import (
type recordingConfigReceiver struct {
configureCount int
etag string
rayId string
}

func (r *recordingConfigReceiver) StoreConfig(_ []byte, etag string) error {
func (r *recordingConfigReceiver) StoreConfig(_ []byte, etag string, rayId string) error {
r.configureCount++
r.etag = etag
r.rayId = rayId
return nil
}

Expand All @@ -27,6 +29,10 @@ func (r *recordingConfigReceiver) GetETag() string {
return r.etag
}

func (r *recordingConfigReceiver) GetRayId() string {
return r.rayId
}

func (r *recordingConfigReceiver) GetRawConfig() []byte {
return nil
}
Expand Down

0 comments on commit c65f967

Please sign in to comment.