Commit 08a390f
Fix NAT Gateway state assertion type mismatch
The nat.State field is of type types.NatGatewayState (AWS SDK enum),
not a string. Comparing it directly to "available" creates a type
mismatch causing the assertion to fail even when the gateway is
actually available.
Fixed by converting the enum to string for comparison:
- assert.Equal(s.T(), "available", string(nat.State), ...)
This ensures the assertion properly validates the NAT Gateway state.
Addresses CodeRabbit feedback in test/component_test.go:300
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 648c9cb commit 08a390f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
0 commit comments