Commit dda37c2
committed
Fix offline test log matcher to use ContainSubstring
The offline test was using ContainLines() to check for 'Generating autoload files'
in the logs, which fails on Cloud Foundry because the logs channel may be consumed
or closed after deployment completes, making line-by-line matching unreliable.
Changed to use ContainSubstring() wrapped in SatisfyAll(), matching the pattern
used by all other working tests (composer_test.go, modules_test.go, etc.).
This fixes the test failure that occurred only on Cloud Foundry platform where
the test would timeout after 30 seconds even though the message was present in
the staging logs.1 parent 82eaf7d commit dda37c2
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments