From 95912963ceb22e044a13de4540f0fc7cc20d3cf5 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:04:23 -0700 Subject: [PATCH] fix: disable metadata for now --- src/engine/runtime.js | 7 ++++--- test/integration/runId.js | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 29c14d3aa..0bfc25ac5 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -1,6 +1,6 @@ const EventEmitter = require('events'); const {OrderedMap} = require('immutable'); -const uuid = require('uuid'); +// const uuid = require('uuid'); const ArgumentType = require('../extension-support/argument-type'); const Blocks = require('./blocks'); @@ -2032,8 +2032,9 @@ class Runtime extends EventEmitter { return; } - const newRunId = uuid.v1(); - this.storage.scratchFetch.setMetadata(this.storage.scratchFetch.RequestMetadata.RunId, newRunId); + // TODO: re-enable metadata + // const newRunId = uuid.v1(); + // this.storage.scratchFetch.setMetadata(this.storage.scratchFetch.RequestMetadata.RunId, newRunId); } /** diff --git a/test/integration/runId.js b/test/integration/runId.js index cdc006b20..2a67a134e 100644 --- a/test/integration/runId.js +++ b/test/integration/runId.js @@ -1,6 +1,6 @@ const Worker = require('tiny-worker'); const path = require('path'); -const test = require('tap').test; +const test = require('tap'); const VirtualMachine = require('../../src/index'); const dispatch = require('../../src/dispatch/central-dispatch'); @@ -15,7 +15,8 @@ const project = readFileToBuffer(uri); // By default Central Dispatch works with the Worker class built into the browser. Tell it to use TinyWorker instead. dispatch.workerClass = Worker; -test('runId', async t => { +// TODO: re-enable metadata +test.skip('runId', async t => { const guidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/; const isGuid = data => guidRegex.test(data);