Skip to content

Commit 73c7ed3

Browse files
committed
format
1 parent 5bba5a5 commit 73c7ed3

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

packages/js-sdk/tests/template/stacktrace.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ buildTemplateTest('traces on fromGCPRegistry', async ({ buildTemplate }) => {
196196

197197
buildTemplateTest('traces on copy', async ({ buildTemplate }) => {
198198
let template = Template().fromBaseImage()
199-
template = template
200-
.skipCache()
201-
.copy(nonExistentPath, nonExistentPath)
199+
template = template.skipCache().copy(nonExistentPath, nonExistentPath)
202200
await expectToThrowAndCheckTrace(async () => {
203201
await buildTemplate(template, { name: 'copy' })
204202
}, 'copy')
@@ -208,9 +206,7 @@ buildTemplateTest('traces on copyItems', async ({ buildTemplate }) => {
208206
let template = Template().fromBaseImage()
209207
template = template
210208
.skipCache()
211-
.copyItems([
212-
{ src: nonExistentPath, dest: nonExistentPath },
213-
])
209+
.copyItems([{ src: nonExistentPath, dest: nonExistentPath }])
214210
await expectToThrowAndCheckTrace(async () => {
215211
await buildTemplate(template, { name: 'copyItems' })
216212
}, 'copyItems')

packages/python-sdk/tests/async/template_async/test_stacktrace.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ async def test_traces_on_from_gcp_registry(async_build):
161161
async def test_traces_on_copy(async_build):
162162
template = AsyncTemplate()
163163
template = template.from_base_image()
164-
template = template.skip_cache().copy(
165-
non_existent_path, non_existent_path
166-
)
164+
template = template.skip_cache().copy(non_existent_path, non_existent_path)
167165
await _expect_to_throw_and_check_trace(
168166
lambda: async_build(template, name="copy"), "copy"
169167
)

packages/python-sdk/tests/sync/template_sync/test_stacktrace.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ def test_traces_on_from_gcp_registry(build):
165165
def test_traces_on_copy(build):
166166
template = Template()
167167
template = template.from_base_image()
168-
template = template.skip_cache().copy(
169-
non_existent_path, non_existent_path
170-
)
168+
template = template.skip_cache().copy(non_existent_path, non_existent_path)
171169
_expect_to_throw_and_check_trace(lambda: build(template, name="copy"), "copy")
172170

173171

0 commit comments

Comments
 (0)