Skip to content

Commit 6fc5062

Browse files
authored
fix: Remove disable streaming warning (#340)
1 parent 682e5ed commit 6fc5062

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

ldclient_end_to_end_fdv2_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func TestFDV2ShutdownDownIfBothSynchronizersFail(t *testing.T) {
200200
expectedStreamError := "Error in stream connection (giving up permanently): HTTP error 401 (invalid SDK key)"
201201
expectedPollError := "Error on polling request (giving up permanently): HTTP error 401 (invalid SDK key)"
202202
assert.Equal(t, []string{expectedStreamError, expectedPollError}, logCapture.GetOutput(ldlog.Error))
203-
assert.Equal(t, []string{pollingModeWarningMessage, initializationFailedErrorMessage}, logCapture.GetOutput(ldlog.Warn))
203+
assert.Equal(t, []string{initializationFailedErrorMessage}, logCapture.GetOutput(ldlog.Warn))
204204
})
205205
}
206206

@@ -280,7 +280,7 @@ func TestFDV2PollingSynchronizerFailsToStartWith401Error(t *testing.T) {
280280

281281
expectedError := "Error on polling request (giving up permanently): HTTP error 401 (invalid SDK key)"
282282
assert.Equal(t, []string{expectedError}, logCapture.GetOutput(ldlog.Error))
283-
assert.Equal(t, []string{pollingModeWarningMessage, initializationFailedErrorMessage}, logCapture.GetOutput(ldlog.Warn))
283+
assert.Equal(t, []string{initializationFailedErrorMessage}, logCapture.GetOutput(ldlog.Warn))
284284
})
285285
}
286286

@@ -372,7 +372,6 @@ func TestFDV2FileInitializerWillDeferToFirstSynchronizer(t *testing.T) {
372372
handler, requestsCh := httphelpers.RecordingHandler(streamHandler)
373373

374374
testHelpers.WithTempFileData([]byte(`{"flags": {"`+alwaysFalseFlag.Key+`": {"on": false}}, "segments": {}}`), func(filename string) {
375-
376375
httphelpers.WithServer(handler, func(server *httptest.Server) {
377376
logCapture := ldlogtest.NewMockLog()
378377

ldcomponents/polling_data_source_builder_v2.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ func (b *PollingDataSourceBuilderV2) PayloadFilter(filterKey string) *PollingDat
8484

8585
// Build is called internally by the SDK.
8686
func (b *PollingDataSourceBuilderV2) Build(context subsystems.ClientContext) (subsystems.DataSynchronizer, error) {
87-
context.GetLogging().Loggers.Warn(
88-
"You should only disable the streaming API if instructed to do so by LaunchDarkly support")
8987
filterKey, wasSet := b.filterKey.Get()
9088
if wasSet && filterKey == "" {
9189
return nil, errors.New("payload filter key cannot be an empty string")

0 commit comments

Comments
 (0)