Commit 80e7396
committed
fix(test): align GetExecutionByID twin test with (nil, nil) contract
Sibling-consistency miss from 1017f66 (which aligned the test in
internal/config/store_postgres_db_test.go to the contract that
GetExecutionByID returns (nil, nil) for missing rows): the duplicate
"Get execution by ID - not found" subtest in store_postgres_test.go
was left on the pre-contract `assert.Error + err.Error()` shape, so
the Integration Tests job panicked with a nil-pointer deref the moment
it tried to format the nil err. The panic cascaded through
TestPostgresStore_PurchaseExecutions and aborted the rest of the
internal/config suite -- visible in the PR's failing CI as
`SIGSEGV ... store_postgres_test.go:313`.
Bring this twin test in line with the contract documented in
1017f66 and the sibling subtest at store_postgres_db_test.go:594:
expect (nil, nil), assert the returned execution is nil, no err
deref. GetExecutionByPlanAndDate's not-found assertion below stays
as-is -- that one DOES wrap a "not found" error (store_postgres.go:1317).1 parent 26063f9 commit 80e7396
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
314 | 319 | | |
315 | 320 | | |
316 | 321 | | |
| |||
0 commit comments