mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
Add unknown environment test for GetInt
This commit is contained in:
parent
b00b4a738d
commit
ac37354986
1 changed files with 4 additions and 0 deletions
|
@ -263,6 +263,10 @@ func TestSessionEnvironmentGetInt(t *testing.T) {
|
|||
} else if i != 1234 {
|
||||
t.Fatalf("unexpected integer: %d", i)
|
||||
}
|
||||
|
||||
if err, _ := env.GetInt("unknownint"); err == nil {
|
||||
t.Fatalf("expected error (unknown key): %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSessionEnvironmentSorted(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue