i am confused because this seems like it’s not code related… i have checked out a quite old commit (where it definitely worked before) and I get the same error
testEnv = await TestWorkflowEnvironment.createTimeSkipping({
// For some reason this is still faster than createLocal
client: { enableTimeSkipping: true } as any,
server: {
executable: {
version: 'v1.20.0',
type: 'cached-download',
},
},
});
seemed to have fixed the issue. Someone should look into the latest java SDK release for this bug.
This is due to us upgrading the time skipping test server just recently. The SDK’s test framework automatically downloads the “best” version of that server and caches it locally.
This issue was fixed over the weekend and just released a few hours ago.
If you’re running tests locally, it’s likely that the download is cached by the SDK in your tmp directory.
You’ll need to delete that file.
On my Mac, I saw it installed at /var/folders/g3/xthbnf8n659_sr46q7ghslhc0000gn/T/temporal-sdk-typescript-1.8.6.