api: unflake some intention-related api tests (#8857)
This commit is contained in:
parent
b596538397
commit
140c88a9f4
|
@ -12,6 +12,8 @@ func TestAPI_ConnectIntentionCreateListGetUpdateDelete(t *testing.T) {
|
||||||
c, s := makeClient(t)
|
c, s := makeClient(t)
|
||||||
defer s.Stop()
|
defer s.Stop()
|
||||||
|
|
||||||
|
s.WaitForServiceIntentions(t)
|
||||||
|
|
||||||
connect := c.Connect()
|
connect := c.Connect()
|
||||||
|
|
||||||
// Create
|
// Create
|
||||||
|
@ -68,6 +70,8 @@ func TestAPI_ConnectIntentionGet_invalidId(t *testing.T) {
|
||||||
c, s := makeClient(t)
|
c, s := makeClient(t)
|
||||||
defer s.Stop()
|
defer s.Stop()
|
||||||
|
|
||||||
|
s.WaitForServiceIntentions(t)
|
||||||
|
|
||||||
connect := c.Connect()
|
connect := c.Connect()
|
||||||
|
|
||||||
// Get it
|
// Get it
|
||||||
|
@ -83,6 +87,8 @@ func TestAPI_ConnectIntentionMatch(t *testing.T) {
|
||||||
c, s := makeClient(t)
|
c, s := makeClient(t)
|
||||||
defer s.Stop()
|
defer s.Stop()
|
||||||
|
|
||||||
|
s.WaitForServiceIntentions(t)
|
||||||
|
|
||||||
connect := c.Connect()
|
connect := c.Connect()
|
||||||
|
|
||||||
// Create
|
// Create
|
||||||
|
@ -129,6 +135,8 @@ func TestAPI_ConnectIntentionCheck(t *testing.T) {
|
||||||
c, s := makeClient(t)
|
c, s := makeClient(t)
|
||||||
defer s.Stop()
|
defer s.Stop()
|
||||||
|
|
||||||
|
s.WaitForServiceIntentions(t)
|
||||||
|
|
||||||
connect := c.Connect()
|
connect := c.Connect()
|
||||||
|
|
||||||
// Create
|
// Create
|
||||||
|
|
Loading…
Reference in New Issue