@@ -612,19 +612,23 @@ func TestBundle(t *testing.T) {
612
612
functions , schedules , functionsConfig , err := bundle (gocontext .Background (), "../internal/data" , mockObserver {})
613
613
614
614
assert .Nil (t , err )
615
- assert .Equal (t , 4 , len (functions .Files ))
615
+ assert .Equal (t , 5 , len (functions .Files ))
616
616
assert .Empty (t , schedules )
617
617
assert .Nil (t , functionsConfig )
618
618
619
619
jsFunction := functions .Files ["hello-js-function-test" ]
620
620
pyFunction := functions .Files ["hello-py-function-test" ]
621
621
rsFunction := functions .Files ["hello-rs-function-test" ]
622
622
goFunction := functions .Files ["hello-go-binary-function" ]
623
+ goBackgroundFunction := functions .Files ["hello-go-binary-function-background" ]
623
624
624
625
assert .Equal (t , "js" , jsFunction .Runtime )
625
626
assert .Equal (t , "py" , pyFunction .Runtime )
626
627
assert .Equal (t , "rs" , rsFunction .Runtime )
627
628
assert .Equal (t , "provided.al2" , goFunction .Runtime )
629
+ assert .Equal (t , "provided.al2" , goBackgroundFunction .Runtime )
630
+
631
+ assert .NotEqual (t , goFunction .Sum , goBackgroundFunction .Sum )
628
632
}
629
633
630
634
func TestBundleWithManifest (t * testing.T ) {
0 commit comments