Skip to content

Commit 98b19d3

Browse files
authored
Merge pull request #802 from hjgraca/fix/metrics-e2e-tests
fix: Metrics e2e tests
2 parents 14c216f + 7a0e0d9 commit 98b19d3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/workflows/e2e-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,5 @@ jobs:
212212
- name: Destroy arm64 AOT Stack
213213
run: |
214214
cd libraries/tests/e2e/infra-aot
215-
npox cdk destroy --all -c architecture=${{ matrix.arch }} --force
215+
npx cdk destroy --all -c architecture=${{ matrix.arch }} --force
216216

libraries/tests/e2e/functions/core/metrics/Function/test/Function.Tests/FunctionTests.cs

-4
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,10 @@ private void AssertSingleMetric(string output)
271271

272272
Assert.True(cloudWatchMetricsElement[0].TryGetProperty("Dimensions", out JsonElement dimensionsElement));
273273
Assert.Equal("FunctionName", dimensionsElement[0][0].GetString());
274-
Assert.Equal("Service", dimensionsElement[0][1].GetString());
275274

276275
Assert.True(root.TryGetProperty("FunctionName", out JsonElement functionNameElement));
277276
Assert.Equal(_functionName, functionNameElement.GetString());
278277

279-
Assert.True(root.TryGetProperty("Service", out JsonElement serviceElement));
280-
Assert.Equal("Test", serviceElement.GetString());
281-
282278
Assert.True(root.TryGetProperty("SingleMetric", out JsonElement singleMetricElement));
283279
Assert.Equal(1, singleMetricElement.GetInt32());
284280
}

0 commit comments

Comments
 (0)