Skip to content

Commit

Permalink
chore: fix instrumentation-fs tests on windows (open-telemetry#1010)
Browse files Browse the repository at this point in the history
removed \n in test to avoid OS and .gitattributes dependencies.
  • Loading branch information
Flarna committed May 6, 2022
1 parent c7b586f commit 61ead95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/node/instrumentation-fs/test/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
[
Expand Down
2 changes: 1 addition & 1 deletion plugins/node/instrumentation-fs/test/fixtures/readtest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hello, world
hello, world
2 changes: 1 addition & 1 deletion plugins/node/instrumentation-fs/test/fixtures/writetest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hello, world
hello, world

0 comments on commit 61ead95

Please sign in to comment.