Skip to content

Commit

Permalink
fix: Update env var name for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
paladin-devops committed Sep 30, 2024
1 parent 78e9da3 commit c75dc67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions registry_no_code_module_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,17 @@ func TestRegistryNoCodeModulesRead(t *testing.T) {
// TestRegistryNoCodeModuleReadVariables tests the ReadVariables method of the
// RegistryNoCodeModules service.
//
// This test requires that the environment variable "NO_CODE_MODULE_ID" is set
// This test requires that the environment variable "GITHUB_REGISTRY_NO_CODE_MODULE_IDENTIFIER" is set
// with the ID of an existing no-code module that has variables.
func TestRegistryNoCodeModulesReadVariables(t *testing.T) {
skipUnlessBeta(t)
client := testClient(t)
ctx := context.Background()
r := require.New(t)

ncmID := os.Getenv("NO_CODE_MODULE_ID")
ncmID := os.Getenv("GITHUB_REGISTRY_NO_CODE_MODULE_IDENTIFIER")
if ncmID == "" {
t.Skip("Export a valid NO_CODE_MODULE_ID before running this test")
t.Skip("Export a valid GITHUB_REGISTRY_NO_CODE_MODULE_IDENTIFIER before running this test")
}

ncm, err := client.RegistryNoCodeModules.Read(ctx, ncmID, nil)
Expand Down

0 comments on commit c75dc67

Please sign in to comment.