Skip to content

Commit

Permalink
test(unit): fix mac registration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ditsuke committed Apr 16, 2023
1 parent 8520fa4 commit 8454fa2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions amizone/amizone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ func TestClient_RegisterWifiMac(t *testing.T) {
nonLoggedInClient := getNonLoggedInClient(g)

macNew := macStringtoMac(mock.ValidMacNew, g)
mac2 := macStringtoMac(mock.ValidMac2, g)

infoOneShot, err := mock.WifiPageOneSlot.Open()
g.Expect(err).ToNot(HaveOccurred())
Expand Down Expand Up @@ -561,7 +562,7 @@ func TestClient_RegisterWifiMac(t *testing.T) {
{
name: "client: logged in; mac: valid; free slots: 1, bypass: false",
client: loggedInClient,
input: RegisterMacArgs{A: macNew, O: false},
input: RegisterMacArgs{A: mac2, O: false},
dataMatcher: DummyMatcher[Empty],
errMatcher: NoError,
setup: func(g *WithT) {
Expand All @@ -570,7 +571,7 @@ func TestClient_RegisterWifiMac(t *testing.T) {
"__RequestVerificationToken": {verificationToken},
"Amizone_Id": {mock.ValidUser},
"Mac1": {mock.ValidMac1},
"Mac2": {mock.ValidMacNew},
"Mac2": {mock.ValidMac2},
"Name": {"DoesntMatter"},
}))
},
Expand Down

0 comments on commit 8454fa2

Please sign in to comment.