Skip to content

Commit

Permalink
Add test to offline status
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspoignant committed Oct 7, 2024
1 parent 0791ba5 commit 2e3fd9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,12 @@ func TestConfig_GetRetrievers(t *testing.T) {
})
}
}

func TestOfflineConfig(t *testing.T) {
c := ffClient.Config{
Offline: true,
}
assert.True(t, c.IsOffline())
c.SetOffline(false)
assert.False(t, c.IsOffline())
}

0 comments on commit 2e3fd9c

Please sign in to comment.