Skip to content

Commit

Permalink
Merge pull request #5971 from neo4j/fix-flaky-test-on-subscriptions
Browse files Browse the repository at this point in the history
Fix falkyness of global-authentication tests for subscriptions
  • Loading branch information
angrykoala authored Jan 28, 2025
2 parents 6050cad + b1b4e0f commit e5a81e3
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe("Subscription global authentication", () => {
let server: TestGraphQLServer;
let wsClient: WebSocketTestClient;

beforeAll(async () => {
beforeEach(async () => {
const neoSchema = await testHelper.initNeo4jGraphQL({
typeDefs,
features: {
Expand All @@ -71,9 +71,6 @@ describe("Subscription global authentication", () => {

afterEach(async () => {
await wsClient.close();
});

afterAll(async () => {
await testHelper.close();
await server.close();
});
Expand Down Expand Up @@ -123,7 +120,7 @@ describe("Subscription global authentication", () => {
let server: TestGraphQLServer;
let wsClient: WebSocketTestClient;

beforeAll(async () => {
beforeEach(async () => {
const neoSchema = await testHelper.initNeo4jGraphQL({
typeDefs,
features: {
Expand All @@ -146,9 +143,6 @@ describe("Subscription global authentication", () => {

afterEach(async () => {
await wsClient.close();
});

afterAll(async () => {
await testHelper.close();
await server.close();
});
Expand Down Expand Up @@ -198,7 +192,7 @@ describe("Subscription global authentication", () => {
let server: TestGraphQLServer;
let wsClient: WebSocketTestClient;

beforeAll(async () => {
beforeEach(async () => {
const neoSchema = await testHelper.initNeo4jGraphQL({
typeDefs,
features: {
Expand All @@ -221,9 +215,6 @@ describe("Subscription global authentication", () => {

afterEach(async () => {
await wsClient.close();
});

afterAll(async () => {
await testHelper.close();
await server.close();
});
Expand Down

0 comments on commit e5a81e3

Please sign in to comment.