Skip to content

Commit d29d9d0

Browse files
fix test and run tests on ci
1 parent 5b81e4c commit d29d9d0

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,30 @@ on:
99

1010
jobs:
1111

12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.25'
21+
22+
- name: Run tests
23+
run: make tests
24+
1225
build:
1326
runs-on: ubuntu-latest
27+
needs: test
1428
steps:
1529
- uses: actions/checkout@v4
1630

1731
- name: Set up Go
1832
uses: actions/setup-go@v5
1933
with:
2034
go-version: '1.25'
21-
35+
2236
- name: Build
2337
env:
2438
RELEASE_BUILD_LINKER_FLAGS: "-s -w"

lambda/interop/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ type ErrorResponseTooLargeDI struct {
356356

357357
// ErrorResponseTooLarge is returned when response provided by Runtime does not fit into shared memory buffer
358358
func (s *ErrorResponseTooLarge) Error() string {
359-
return fmt.Sprintf("Response payload size exceeded maximum allowed payload size (%d bytes).", s.MaxResponseSize)
359+
return fmt.Sprintf("Response payload size (%d bytes) exceeded maximum allowed payload size (%d bytes).", s.ResponseSize, s.MaxResponseSize)
360360
}
361361

362362
// AsErrorResponse generates ErrorInvokeResponse from ErrorResponseTooLarge

0 commit comments

Comments
 (0)