diff --git a/config_v3/embedded_global_test.go b/config_v3/embedded_global_test.go index a2f5047fc..cfd1aabff 100644 --- a/config_v3/embedded_global_test.go +++ b/config_v3/embedded_global_test.go @@ -16,8 +16,10 @@ func TestEmbeddedGlobal(t *testing.T) { assert.NoError(t, err) gl := global.(*Global) - assert.True(t, len(gl.Client.Fronted.Providers["akamai"].Masquerades) > 20, "embedded global config does not contain enough akamai masquerades") - assert.True(t, len(gl.Client.Fronted.Providers["cloudfront"].Masquerades) > 20, "embedded global config does not contain enough cloudfront masquerades") - assert.Containsf(t, gl.Client.Fronted.Providers["cloudfront"].HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search cloudfront fronted provider") - assert.Containsf(t, gl.Client.Fronted.Providers["akamai"].HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search akamai fronted provider") + akamai := gl.Client.Fronted.Providers["akamai"] + cloudfront := gl.Client.Fronted.Providers["cloudfront"] + assert.True(t, len(akamai.Masquerades) > 20, "embedded global config does not contain enough akamai masquerades: ") + assert.True(t, len(cloudfront.Masquerades) > 20, "embedded global config does not contain enough cloudfront masquerades") + assert.Containsf(t, cloudfront.HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search cloudfront fronted provider") + assert.Containsf(t, akamai.HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search akamai fronted provider") }