Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo fix in comments #670

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions endpoint_handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestSourceEndpointSubcollectionListTenantNotExist(t *testing.T) {
}

// TestSourceEndpointSubcollectionListInvalidTenant tests that not found is returned
// for existing tenant who doesnt't own the source
// for existing tenant who doesn't own the source
func TestSourceEndpointSubcollectionListInvalidTenant(t *testing.T) {
testutils.SkipIfNotRunningIntegrationTests(t)
tenantId := int64(2)
Expand Down Expand Up @@ -639,7 +639,7 @@ func TestEndpointCreate(t *testing.T) {
}

if endpointOut.SourceID != fmt.Sprintf("%d", sourceId) {
t.Error("shosts infected the return")
t.Error("ghosts infected the return")
}

endpointOutId, err := strconv.ParseInt(endpointOut.ID, 10, 64)
Expand Down Expand Up @@ -1139,7 +1139,7 @@ func TestEndpointEditPaused(t *testing.T) {
c.Request().Header.Add("Content-Type", "application/json;charset=utf-8")
c.Set("accountNumber", fixtures.TestTenantData[0].ExternalTenant)

// Store the original "getEndopintDao" function to restore it later.
// Store the original "getEndpointDao" function to restore it later.
backupGetEndpointDao := getEndpointDao
getEndpointDao = func(c echo.Context) (dao.EndpointDao, error) {
return &mocks.MockEndpointDao{Endpoints: fixtures.TestEndpointData}, nil
Expand Down Expand Up @@ -1196,7 +1196,7 @@ func TestEndpointEditPausedInvalidFields(t *testing.T) {
pausedAt := time.Now()
fixtures.TestEndpointData[0].PausedAt = &pausedAt

// Store the original "getEndopintDao" function to restore it later.
// Store the original "getEndpointDao" function to restore it later.
backupGetEndpointDao := getEndpointDao
getEndpointDao = func(c echo.Context) (dao.EndpointDao, error) {
return &mocks.MockEndpointDao{Endpoints: fixtures.TestEndpointData}, nil
Expand Down
Loading