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

Modifying copied object #211

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions analysis/analysis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestApplicationAnalysis(t *testing.T) {

// Prepare Identities, e.g. for Maven repo
for idx := range tc.Identities {
identity := &tc.Identities[idx]
uniq.IdentityName(identity)
identity := tc.Identities[idx]
uniq.IdentityName(&identity)
if identity.Kind == "maven" {
mvnUser := os.Getenv("MAVEN_TESTAPP_USER")
mvnToken := os.Getenv("MAVEN_TESTAPP_TOKEN")
Expand All @@ -61,7 +61,7 @@ func TestApplicationAnalysis(t *testing.T) {
identity.Settings = strings.Replace(identity.Settings, "GITHUB_TOKEN", mvnToken, 1)
t.Logf("using mvn user %s", mvnUser)
}
assert.Should(t, RichClient.Identity.Create(identity))
assert.Should(t, RichClient.Identity.Create(&identity))
tc.Application.Identities = append(tc.Application.Identities, api.Ref{ID: identity.ID})
}

Expand Down
Loading