@@ -242,7 +242,7 @@ func TestRegistry(t *testing.T) {
242
242
assert .Error (t , err , "should not work after close" )
243
243
}
244
244
245
- func TestOpaEngineStartFailureWithTimeout (t * testing.T ) {
245
+ func TestOpaEngineStartFailureWithWrongBundle (t * testing.T ) {
246
246
_ , config := mockControlPlaneWithDiscoveryBundle ("bundles/discovery-with-wrong-bundle" )
247
247
248
248
registry := NewOpenPolicyAgentRegistry (WithReuseDuration (1 * time .Second ), WithCleanInterval (1 * time .Second ))
@@ -258,7 +258,7 @@ func TestOpaEngineStartFailureWithTimeout(t *testing.T) {
258
258
259
259
err = engine .Start (ctx , cfg .startupTimeout )
260
260
assert .True (t , engine .stopped )
261
- assert .Contains (t , err .Error (), "one or more open policy agent plugins failed to start in 1s " )
261
+ assert .Contains (t , err .Error (), "bundle plugin failed: bundle_error " )
262
262
}
263
263
264
264
func TestOpaActivationSuccessWithDiscovery (t * testing.T ) {
@@ -339,7 +339,7 @@ func TestOpaActivationTimeOutWithDiscoveryPointingWrongBundle(t *testing.T) {
339
339
340
340
instance , err := registry .NewOpenPolicyAgentInstance ("test" , * cfg , "testfilter" )
341
341
assert .Nil (t , instance )
342
- assert .Contains (t , err .Error (), "one or more open policy agent plugins failed to start in 1s with error: context deadline exceeded " )
342
+ assert .Contains (t , err .Error (), "bundle plugin failed: bundle_error " )
343
343
assert .Equal (t , 0 , len (registry .instances ))
344
344
}
345
345
0 commit comments