Skip to content

test: cleanup operator_test.go to only make local calls (no internet dependencies) - #350

Draft
samlaf wants to merge 3 commits into
devfrom
test--cleanup-operator-test-local-calls-only
Draft

test: cleanup operator_test.go to only make local calls (no internet dependencies)#350
samlaf wants to merge 3 commits into
devfrom
test--cleanup-operator-test-local-calls-only

Conversation

@samlaf

@samlaf samlaf commented Sep 24, 2024

Copy link
Copy Markdown
Contributor

The tests were failing this morning when http://example.com was returning 500 errors temporarily. We shouldn't depend on any external servers for tests, so this PR is a wip DRAFT for this goal.

Super ugly right now, but at least it's working. Just need to clean this up.

Comment thread types/operator_test.go
return
}
marshalledOperatorMetadata, err := json.Marshal(operatorMetadata)
require.NoError(t, err)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot what was diff between require and assert?

@samlaf
samlaf marked this pull request as draft September 27, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants