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 16e8235abe
commit 0c9177f6a5
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) 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