Skip to content

Commit 8b47e27

Browse files
committed
move expected value closer to assertion
1 parent 15c6979 commit 8b47e27

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

alterclientquotas_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@ func TestClientAlterClientQuotas(t *testing.T) {
6565

6666
assert.Equal(t, expectedAlterResp, *alterResp)
6767

68+
describeResp, err := client.DescribeClientQuotas(context.Background(), &DescribeClientQuotasRequest{
69+
Components: []DescribeClientQuotasRequestComponent{
70+
{
71+
EntityType: entityType,
72+
MatchType: 0,
73+
Match: entityName,
74+
},
75+
},
76+
})
77+
78+
if err != nil {
79+
t.Fatal(err)
80+
}
81+
6882
expectedDescribeResp := DescribeClientQuotasResponse{
6983
Throttle: 0,
7084
ErrorCode: 0,
@@ -86,19 +100,5 @@ func TestClientAlterClientQuotas(t *testing.T) {
86100
},
87101
}
88102

89-
describeResp, err := client.DescribeClientQuotas(context.Background(), &DescribeClientQuotasRequest{
90-
Components: []DescribeClientQuotasRequestComponent{
91-
{
92-
EntityType: entityType,
93-
MatchType: 0,
94-
Match: entityName,
95-
},
96-
},
97-
})
98-
99-
if err != nil {
100-
t.Fatal(err)
101-
}
102-
103103
assert.Equal(t, expectedDescribeResp, *describeResp)
104104
}

0 commit comments

Comments
 (0)