From 6f729a5f84918ecfc95a7a0d56c15e3c6c7df196 Mon Sep 17 00:00:00 2001 From: Jakub Novak Date: Fri, 13 Oct 2023 17:47:53 -0700 Subject: [PATCH] Increase timeout in test --- .../js-sdk/test/templates/dataAnalysis.test.mjs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/js-sdk/test/templates/dataAnalysis.test.mjs b/packages/js-sdk/test/templates/dataAnalysis.test.mjs index 740acc621..9c83039a4 100644 --- a/packages/js-sdk/test/templates/dataAnalysis.test.mjs +++ b/packages/js-sdk/test/templates/dataAnalysis.test.mjs @@ -2,17 +2,16 @@ import {DataAnalysis} from "../../src" import {expect, test} from 'vitest' test('test_data_analysis', async () => { - const session = await DataAnalysis.create() - const result = await session.runPython( - ` + const session = await DataAnalysis.create() + const result = await session.runPython( + ` import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4]) plt.ylabel('some numbers') plt.show() ` - ) - await session.close() - console.log(result) - expect(result.artifacts.length).toEqual(1) -}) + ) + await session.close() + expect(result.artifacts.length).toEqual(1) +}, 10000)