Skip to content

Commit

Permalink
fix: Ensure anonymous context is valid (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Feb 9, 2024
1 parent e1585ec commit 65406cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ci/action.yml
Expand Up @@ -82,4 +82,4 @@ runs:
shell: bash
# Add a brief sleep here to ensure the test service is ready to receive
# requests
run: sleep 10 && make run-contract-tests
run: make run-contract-tests
1 change: 1 addition & 0 deletions LaunchDarkly/LaunchDarkly/Models/Context/LDContext.swift
Expand Up @@ -43,6 +43,7 @@ public struct LDContext: Encodable, Equatable {

init() {
self.init(canonicalizedKey: LDContext.defaultKey(kind: Kind.user))
self.key = self.canonicalizedKey
}

struct Meta: Codable {
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -12,7 +12,7 @@ start-contract-test-service-bg:

run-contract-tests:
@curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/master/downloader/run.sh \
| VERSION=v2 PARAMS="-url http://localhost:8080 -debug -stop-service-at-end -skip-from ./ContractTests/testharness-suppressions.txt $(TEST_HARNESS_PARAMS)" sh
| VERSION=v2 PARAMS="-url http://localhost:8080 -debug -status-timeout 120 -stop-service-at-end -skip-from ./ContractTests/testharness-suppressions.txt $(TEST_HARNESS_PARAMS)" sh

contract-tests: start-contract-test-service-bg run-contract-tests

Expand Down

0 comments on commit 65406cc

Please sign in to comment.