Skip to content

go examples fail because InitializedTestCase is not used #1304

@laurentsenta

Description

@laurentsenta

Version information:

› git log | head -n1
commit 6ae5c95b246ce61ec4382f260ad99ae739967786

macOS, 12.3.1, Intel,
Running on local docker,

Description:

When I run the go example it ends with failed outcome:

testground run single --plan=example --testcase=output --builder=docker:go --runner=local:docker --instances=1

This is somewhat expected: these examples do not use the InitializedTestCase wrapper.
Without this wrapper, the test won't send the "success message" to testground and it'll assume the test failed.

See also: #1303 (comment)

One fix is to add the wrapper to the tests:

A more thoughtful fix might be to make InitializedTestCase the new default, see:
https://github.com/testground/sdk-go/blob/d78f61eccaa37b0d941f98650bce5dbb8fd7b7f1/run/invoker.go#L46-L65

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions