From 61ead953f7aeee723a5796ff0509f286e8d792b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerhard=20St=C3=B6bich?= Date: Fri, 6 May 2022 14:04:34 +0200 Subject: [PATCH] chore: fix instrumentation-fs tests on windows (#1010) removed \n in test to avoid OS and .gitattributes dependencies. --- plugins/node/instrumentation-fs/test/definitions.ts | 2 +- plugins/node/instrumentation-fs/test/fixtures/readtest | 2 +- plugins/node/instrumentation-fs/test/fixtures/writetest | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/node/instrumentation-fs/test/definitions.ts b/plugins/node/instrumentation-fs/test/definitions.ts index ba7ebe73fd4..cb854ea6b39 100644 --- a/plugins/node/instrumentation-fs/test/definitions.ts +++ b/plugins/node/instrumentation-fs/test/definitions.ts @@ -32,7 +32,7 @@ export type TestCreator = ( spans: any[] ) => void; -const TEST_CONTENTS = Buffer.from('hello, world\n'); +const TEST_CONTENTS = Buffer.from('hello, world'); const ENOENT = /ENOENT: no such file or directory, /; const tests: TestCase[] = [ [ diff --git a/plugins/node/instrumentation-fs/test/fixtures/readtest b/plugins/node/instrumentation-fs/test/fixtures/readtest index 4b5fa63702d..8c01d89ae06 100644 --- a/plugins/node/instrumentation-fs/test/fixtures/readtest +++ b/plugins/node/instrumentation-fs/test/fixtures/readtest @@ -1 +1 @@ -hello, world +hello, world \ No newline at end of file diff --git a/plugins/node/instrumentation-fs/test/fixtures/writetest b/plugins/node/instrumentation-fs/test/fixtures/writetest index 4b5fa63702d..8c01d89ae06 100644 --- a/plugins/node/instrumentation-fs/test/fixtures/writetest +++ b/plugins/node/instrumentation-fs/test/fixtures/writetest @@ -1 +1 @@ -hello, world +hello, world \ No newline at end of file