@@ -28,7 +28,7 @@ func TestChainReturnedFromFirstFunc(t *testing.T) {
2828 frameworks := utils .GetAllFrameworks ()
2929 for _ , framework := range frameworks {
3030 t .Run (framework , func (t * testing.T ) {
31- app := simplapi .New (framework , "" )
31+ app := simplapi .New (simplapi . WithCreateFramework ( framework ) )
3232 fApp := app .GetApp ()
3333
3434 func1 := func () (* HelloResponse , error ) {
@@ -62,7 +62,7 @@ func TestChainReturnedFromSecondFunc(t *testing.T) {
6262 frameworks := utils .GetAllFrameworks ()
6363 for _ , framework := range frameworks {
6464 t .Run (framework , func (t * testing.T ) {
65- app := simplapi .New (framework , "" )
65+ app := simplapi .New (simplapi . WithCreateFramework ( framework ) )
6666 fApp := app .GetApp ()
6767
6868 func1 := func () (* HelloResponse , error ) {
@@ -96,7 +96,7 @@ func TestChainReturnedFromNoFunc(t *testing.T) {
9696 frameworks := utils .GetAllFrameworks ()
9797 for _ , framework := range frameworks {
9898 t .Run (framework , func (t * testing.T ) {
99- app := simplapi .New (framework , "" )
99+ app := simplapi .New (simplapi . WithCreateFramework ( framework ) )
100100 fApp := app .GetApp ()
101101
102102 func1 := func () (* HelloResponse , error ) {
@@ -125,7 +125,7 @@ func TestChainReturnedErrorFromFirstFunc(t *testing.T) {
125125 frameworks := utils .GetAllFrameworks ()
126126 for _ , framework := range frameworks {
127127 t .Run (framework , func (t * testing.T ) {
128- app := simplapi .New (framework , "" )
128+ app := simplapi .New (simplapi . WithCreateFramework ( framework ) )
129129 fApp := app .GetApp ()
130130
131131 func1 := func () (* HelloResponse , error ) {
@@ -155,7 +155,7 @@ func TestContextInChain(t *testing.T) {
155155 frameworks := utils .GetAllFrameworks ()
156156 for _ , framework := range frameworks {
157157 t .Run (framework , func (t * testing.T ) {
158- app := simplapi .New (framework , "" )
158+ app := simplapi .New (simplapi . WithCreateFramework ( framework ) )
159159 fApp := app .GetApp ()
160160
161161 func1 := func (ctx * context.Context ) (* HelloResponse , error ) {
0 commit comments