Skip to content

Commit f1d8942

Browse files
committed
Use the action response in test
1 parent bf7acc6 commit f1d8942

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controllers/digitalocean/floatingipbinding_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var (
5050
// getResponseAssigned = floatingIPRoot{
5151
// FloatingIP: &godo.FloatingIP{IP: TestIP, Droplet: &godo.Droplet{ID: 12345678}},
5252
// }
53-
// assignResponse = actionRoot{Event: &godo.Action{}}
53+
assignResponse = actionRoot{Event: &godo.Action{}}
5454
)
5555

5656
var _ = Context("Floating IP Controller", func() {
@@ -70,7 +70,7 @@ var _ = Context("Floating IP Controller", func() {
7070
httpmock.RegisterResponder(
7171
"POST",
7272
"/v2/floating_ips/1.2.3.4/actions",
73-
httpmock.NewJsonResponderOrPanic(200, getResponseUnassigned),
73+
httpmock.NewJsonResponderOrPanic(200, assignResponse),
7474
)
7575

7676
By("Creating a binding")

0 commit comments

Comments
 (0)