Skip to content
Permalink
Browse files

Fix incorrectly named variable in release script, fix test warning.

  • Loading branch information
Brett Morien
Brett Morien committed Mar 17, 2020
1 parent 5f6466c commit 8707142281cc81d16a730915d5ab8b60f432c729
@@ -17,7 +17,7 @@ git push origin master --tags
# Get commit id
commitId=$(git rev-parse HEAD)

# Read asset tags.
# Get release
release=$(curl -sH "$AUTH" "$GH_REPO/releases/tags/_$tag")

releaseId=$(jq .id <(cat <<<"$release"))
@@ -10,12 +10,12 @@ AUTH="Authorization: token $github_api_token"
# Validate token.
curl -o /dev/null -sH "$AUTH" $GH_REPO || { echo "Error: Invalid repo, token or network issue!"; exit 1; }

# Read asset tags.
response=$(curl -sH "$AUTH" $GH_TAG_URL)
# Get release
release=$(curl -sH "$AUTH" $GH_TAG_URL)

# Extract the release id
releaseId=$(jq .id <(cat <<<"$release"))
[ "$releaseId" ] || { echo "Error: Failed to get release id for tag: $tag"; echo "$response" | awk 'length($0)<100' >&2; exit 1; }
[ "$releaseId" ] || { echo "Error: Failed to get release id for tag: $tag"; echo "$release" | awk 'length($0)<100' >&2; exit 1; }

# Upload asset
echo "Uploading asset... "
@@ -74,7 +74,7 @@ class MetricsTests {

fun advanceTime(duration: Duration) {
clock.advanceTime(duration.toMillis())
Metrics.globalRegistry.registries.forEach { r -> (r as MockMeterRegistry)?.advanceTime(duration.toMillis()) }
Metrics.globalRegistry.registries.forEach { r -> (r as? MockMeterRegistry)?.advanceTime(duration.toMillis()) }
}

@After

0 comments on commit 8707142

Please sign in to comment.
You can’t perform that action at this time.