Skip to content

Commit

Permalink
Fix: add missing TestGetDefaultParameters case
Browse files Browse the repository at this point in the history
  • Loading branch information
rod-hynes committed Nov 7, 2023
1 parent 49bc95e commit 161080b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions psiphon/common/parameters/parameters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ func TestGetDefaultParameters(t *testing.T) {
t.Fatalf("LabeledTunnelProtocols returned %+v expected %+v", g, protocols)
}
}
case protocol.ConjureTransports:
g := p.Get().ConjureTransports(name)
if !reflect.DeepEqual(v, g) {
t.Fatalf("ConjureTransports returned %+v expected %+v", g, v)
}
default:
t.Fatalf("Unhandled default type: %s (%T)", name, defaults.value)
}
Expand Down

0 comments on commit 161080b

Please sign in to comment.