From 2ad5b799b7acdc0251d9139b6e386bfdb2a1f558 Mon Sep 17 00:00:00 2001 From: Mrod1598 Date: Tue, 7 Sep 2021 14:11:02 -0400 Subject: [PATCH] Update for consistency --- operator/builtin/input/file/config_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operator/builtin/input/file/config_test.go b/operator/builtin/input/file/config_test.go index 01519764..98125e21 100644 --- a/operator/builtin/input/file/config_test.go +++ b/operator/builtin/input/file/config_test.go @@ -706,7 +706,7 @@ func TestMapStructureDecodeConfigWithHook(t *testing.T) { "line_start_pattern": expect.Splitter.Multiline.LineStartPattern, "line_end_pattern": expect.Splitter.Multiline.LineEndPattern, }, - "force_flush_period": "500ms", + "force_flush_period": 0.5, "include_file_name": true, "include_file_path": false, "start_at": "end", @@ -751,7 +751,7 @@ func TestMapStructureDecodeConfig(t *testing.T) { "max_concurrent_files": 1024, "encoding": "utf16", "force_flush_period": map[string]interface{}{ - "Duration": time.Millisecond * 500, + "Duration": 500 * 1000 * 1000, }, }