Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mredolatti committed Dec 6, 2024
1 parent 66886e2 commit 9674a59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions infra/test/test_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ function testAllVars {
export SPLITD_EVENTS_REFRESH_SECS="11"
export SPLITD_EVENTS_QUEUE_SIZE="12"

export SPLITD_API_HOST="someHost"
export SPLITD_API_PORT="1111"

export SPLITD_PROFILING_ENABLE="true"
export SPLITD_PROFILING_HOST="somehost"
export SPLITD_PROFILING_PORT="1234"
Expand Down Expand Up @@ -99,6 +102,11 @@ function testAllVars {
assert_eq "4" $(echo "$conf_json" | jq '.Link.AcceptTimeoutMS') "incorrect accept timeout"
assert_eq "5" $(echo "$conf_json" | jq '.Link.BufferSize') "incorrect buffer size"

# ---

assert_eq '"someHost"' $(echo "$conf_json" | jq '.API.Host') "incorrect api host"
assert_eq "1111" $(echo "$conf_json" | jq '.API.Port') "incorrect api port"

# ---

assert_eq "true" $(echo "$conf_json" | jq '.Debug.Profiling.Enable') "incorrect profiling status"
Expand Down
2 changes: 1 addition & 1 deletion splitio/commitsha.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package splitio

const CommitSHA = "d46a130"
const CommitSHA = "66886e2"
1 change: 1 addition & 0 deletions splitio/conf/splitd.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (s *SDK) PopulateWithDefaults() {
s.FeatureFlags.PopulateWithDefaults()
s.Impressions.PopulateWithDefaults()
s.Events.PopulateWithDefaults()
s.FlagSetsFilter = []string{}
}

type FeatureFlags struct {
Expand Down

0 comments on commit 9674a59

Please sign in to comment.