Skip to content

Commit 47269fe

Browse files
committed
Revert "move expected value closer to assertion"
This reverts commit 8b47e27.
1 parent 8b47e27 commit 47269fe

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,20 +65,6 @@ 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-
8268
expectedDescribeResp := DescribeClientQuotasResponse{
8369
Throttle: 0,
8470
ErrorCode: 0,
@@ -100,5 +86,19 @@ func TestClientAlterClientQuotas(t *testing.T) {
10086
},
10187
}
10288

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)