api: unflake some intention-related api tests (#8857)

This commit is contained in:
R.B. Boyer 2020-10-07 13:32:53 -05:00 committed by GitHub
parent b596538397
commit 140c88a9f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,8 @@ func TestAPI_ConnectIntentionCreateListGetUpdateDelete(t *testing.T) {
c, s := makeClient(t)
defer s.Stop()
s.WaitForServiceIntentions(t)
connect := c.Connect()
// Create
@ -68,6 +70,8 @@ func TestAPI_ConnectIntentionGet_invalidId(t *testing.T) {
c, s := makeClient(t)
defer s.Stop()
s.WaitForServiceIntentions(t)
connect := c.Connect()
// Get it
@ -83,6 +87,8 @@ func TestAPI_ConnectIntentionMatch(t *testing.T) {
c, s := makeClient(t)
defer s.Stop()
s.WaitForServiceIntentions(t)
connect := c.Connect()
// Create
@ -129,6 +135,8 @@ func TestAPI_ConnectIntentionCheck(t *testing.T) {
c, s := makeClient(t)
defer s.Stop()
s.WaitForServiceIntentions(t)
connect := c.Connect()
// Create