Skip to content

Commit

Permalink
test: update testSetForAllEnvironments to use uniqe env var name
Browse files Browse the repository at this point in the history
This stops a race condition when running the whole test suite
  • Loading branch information
GNMoseke committed Oct 5, 2024
1 parent 6574208 commit 94ae83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/HummingbirdTests/EnvironmentTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ final class EnvironmentTests: XCTestCase {

func testSetForAllEnvironments() {
var env = Environment()
env.set("TEST_VAR", value: "testSet")
env.set("TEST_VAR_E1", value: "testSet")
let env2 = Environment()
XCTAssertEqual(env2.get("TEST_VAR"), "testSet")
XCTAssertEqual(env2.get("TEST_VAR_E1"), "testSet")
}

func testLogLevel() {
Expand Down

0 comments on commit 94ae83f

Please sign in to comment.