Skip to content

Commit 04cdcee

Browse files
committed
update tests
1 parent 8de4ac2 commit 04cdcee

2 files changed

Lines changed: 315 additions & 318 deletions

File tree

channels_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,22 +173,22 @@ func Test_shouldFallbackToListChannels(t *testing.T) {
173173
{
174174
name: "api no_channels_supplied",
175175
err: &edge.APIError{Err: "no_channels_supplied"},
176-
want: true,
176+
want: false, // Not a fallback condition anymore
177177
},
178178
{
179179
name: "api internal_error",
180180
err: &edge.APIError{Err: "internal_error"},
181-
want: true,
181+
want: false, // Not a fallback condition anymore
182182
},
183183
{
184184
name: "wrapped callback no_channels_supplied",
185185
err: errors.New("API error: callback error: no_channels_supplied"),
186-
want: true,
186+
want: false, // Not a fallback condition anymore
187187
},
188188
{
189189
name: "wrapped callback internal_error",
190190
err: errors.New("API error: callback error: internal_error"),
191-
want: true,
191+
want: false, // Not a fallback condition anymore
192192
},
193193
{
194194
name: "other error",

0 commit comments

Comments
 (0)