@@ -612,19 +612,23 @@ func TestBundle(t *testing.T) {
612612 functions , schedules , functionsConfig , err := bundle (gocontext .Background (), "../internal/data" , mockObserver {})
613613
614614 assert .Nil (t , err )
615- assert .Equal (t , 4 , len (functions .Files ))
615+ assert .Equal (t , 5 , len (functions .Files ))
616616 assert .Empty (t , schedules )
617617 assert .Nil (t , functionsConfig )
618618
619619 jsFunction := functions .Files ["hello-js-function-test" ]
620620 pyFunction := functions .Files ["hello-py-function-test" ]
621621 rsFunction := functions .Files ["hello-rs-function-test" ]
622622 goFunction := functions .Files ["hello-go-binary-function" ]
623+ goBackgroundFunction := functions .Files ["hello-go-binary-function-background" ]
623624
624625 assert .Equal (t , "js" , jsFunction .Runtime )
625626 assert .Equal (t , "py" , pyFunction .Runtime )
626627 assert .Equal (t , "rs" , rsFunction .Runtime )
627628 assert .Equal (t , "provided.al2" , goFunction .Runtime )
629+ assert .Equal (t , "provided.al2" , goBackgroundFunction .Runtime )
630+
631+ assert .NotEqual (t , goFunction .Sum , goBackgroundFunction .Sum )
628632}
629633
630634func TestBundleWithManifest (t * testing.T ) {
0 commit comments