Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 98b63f3

Browse files
committedMar 27, 2024
Test precedence
1 parent bd2548f commit 98b63f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/test/kotlin/com/coder/gateway/settings/CoderSettingsTest.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ internal class CoderSettingsTest {
178178
settings = CoderSettings(CoderSettingsState(),
179179
env = Environment(mapOf(CODER_SSH_CONFIG_OPTIONS to "ssh config options from env")))
180180
assertEquals("ssh config options from env", settings.sshConfigOptions)
181+
182+
// State has precedence.
183+
settings = CoderSettings(CoderSettingsState(sshConfigOptions = "ssh config options from state"),
184+
env = Environment(mapOf(CODER_SSH_CONFIG_OPTIONS to "ssh config options from env")))
185+
assertEquals("ssh config options from state", settings.sshConfigOptions)
181186
}
182187

183188
@Test

0 commit comments

Comments
 (0)
Please sign in to comment.