Skip to content

Commit fb06f4e

Browse files
test(plot): pin standard backend in plot communication test
Now that the build installs Suggests (dependencies=TRUE), jgd is present on CI runners. The plot test left r.plot.backend unset, so resolveBackend returned 'auto', which prefers jgd when installed — the r.standardPlot webview was never created and the spy timed out. Pin r.plot.backend to 'standard' in the test's config stub so the test exercises a deterministic backend regardless of which optional plot packages are installed.
1 parent 22196fe commit fb06f4e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/test/suite/session.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ suite('Session Communication', () => {
118118
if (key === 'sessionWatcher') { return true; }
119119
if (key === 'rterm.option') { return ['--no-save']; }
120120
if (key === 'plot.useHttpgd') { return false; }
121+
// Pin the standard plot backend so this test is deterministic.
122+
// Otherwise it resolves to 'auto', which prefers jgd when jgd is
123+
// installed (now the case in CI since the build installs Suggests),
124+
// and the r.standardPlot webview is never created.
125+
if (key === 'plot.backend') { return 'standard'; }
121126
if (key === 'session.data.pageSize') { return 500; }
122127
if (key === 'session.viewers.viewColumn') { return {
123128
plot: 'Two',

0 commit comments

Comments
 (0)