projects
/
static-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db4795
)
like this?
author
Mauro Scomparin
<scompo@gmail.com>
Wed, 26 Feb 2020 21:27:08 +0000
(22:27 +0100)
committer
Mauro Scomparin
<scompo@gmail.com>
Wed, 26 Feb 2020 21:27:08 +0000
(22:27 +0100)
server_test.go
patch
|
blob
|
blame
|
history
diff --git
a/server_test.go
b/server_test.go
index 7d269c3aadba1a6c50f5cf1816e4c5b21b6e11e8..e94b28e1e92a0e979202cd8991aaf13832d5617c 100644
(file)
--- a/
server_test.go
+++ b/
server_test.go
@@
-19,7
+19,7
@@
func TestReadEnvVarReturnsDefaultValueWhenEnvVarNotSet(t *testing.T) {
}
func TestReadEnvVarReturnsTheExpectedValueWhenSet(t *testing.T) {
- os.Set
E
nv(envVar, expectedValue)
+ os.Set
e
nv(envVar, expectedValue)
res := ReadEnvVar(envVar, defaultValue)
if res != expectedValue {
t.Errorf("Did not return the expected value set in the enviroinment variable")