Skip to content

Commit

Permalink
Renamed some missed text
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Jul 5, 2023
1 parent a530096 commit a6f5a77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion output/cloud/expv2/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestNew(t *testing.T) {
assert.Equal(t, int64(99), o.config.APIVersion.Int64)
}

func TestOutputSetReferenceID(t *testing.T) {
func TestOutputSetTestRunID(t *testing.T) {
t.Parallel()
o := Output{}
o.SetTestRunID("my-test-run-id")
Expand Down
4 changes: 2 additions & 2 deletions output/cloud/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func validateRequiredSystemTags(scriptTags *metrics.SystemTagSet) error {
func (out *Output) Start() error {
if out.config.PushRefID.Valid {
out.testRunID = out.config.PushRefID.String
out.logger.WithField("testRunID", out.testRunID).Debug("directly pushing metrics without init")
out.logger.WithField("testRunId", out.testRunID).Debug("Directly pushing metrics without init")
return out.startVersionedOutput()
}

Expand Down Expand Up @@ -334,7 +334,7 @@ func (out *Output) getRunStatus(testErr error) cloudapi.RunStatus {

func (out *Output) startVersionedOutput() error {
if out.testRunID == "" {
return errors.New("ReferenceID is required")
return errors.New("TestRunID is required")
}
var err error
switch out.config.APIVersion.Int64 {
Expand Down
2 changes: 1 addition & 1 deletion output/cloud/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func TestOutputStartVersionedOutputV1(t *testing.T) {
assert.True(t, ok)
}

func TestOutputStartWithReferenceID(t *testing.T) {
func TestOutputStartWithTestRunID(t *testing.T) {
t.Parallel()

handler := func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit a6f5a77

Please sign in to comment.