Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
svemat01 committed Aug 7, 2024
1 parent 477e05b commit be05c8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Binary file modified test/bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"devDependencies": {
"@typescript-eslint/parser": "^6.17.0",
"bun-types": "latest",
"bun-types": "^1.1.21",
"eslint": "^8.56.0",
"eslint-plugin-v3xlabs": "^1.6.2",
"typescript": "^5.3.3"
Expand All @@ -19,4 +19,4 @@
"scripts": {
"lint": "eslint -c .eslintrc.json --ext .ts ./src ./tests ./data"
}
}
}
10 changes: 4 additions & 6 deletions test/tests/server.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Subprocess } from 'bun';
import { afterAll, beforeAll } from 'bun:test';
import { resolve } from 'node:path';

import { dataset_address_bulk, dataset_name_bulk, dataset_universal_bulk } from '../data';
import {
Expand All @@ -15,13 +14,12 @@ const TEST_RELEASE = true;

let server: Subprocess | undefined;

const enstateBinaryPath = resolve('../server/target/release/enstate');

beforeAll(async () => {
console.log(`Running server binary at ${enstateBinaryPath}`);
// Exclude PATH from environment variables
const { PATH: _path, ...environment } = process.env;

server = Bun.spawn([enstateBinaryPath], {
env: { ...process.env, RUST_LOG: 'info' },
server = Bun.spawn(['../server/target/release/enstate'], {

Check failure on line 21 in test/tests/server.spec.ts

View workflow job for this annotation

GitHub Actions / Test ENState 🚀 (server)

TypeError: Executable not found in $PATH: "../server/target/release/enstate"

at /home/runner/work/enstate/enstate/test/tests/server.spec.ts:21:18 at /home/runner/work/enstate/enstate/test/tests/server.spec.ts:17:11 at test_implementation (/home/runner/work/enstate/enstate/test/src/test_implementation.ts:10:5) at /home/runner/work/enstate/enstate/test/tests/server.spec.ts:69:1 at 2:1
env: { ...environment, RUST_LOG: 'info' },
});

const decoder = new TextDecoder();
Expand Down

0 comments on commit be05c8b

Please sign in to comment.