Use strong typing and allow atomic change of the max runners (#24)

* Use strong typing and allow atomic change of the max runners

* prepare type change in dockerscaleset
This commit is contained in:
Nikola Jokic
2025-11-26 12:10:39 +01:00
committed by GitHub
parent 6d1c317b90
commit 7442885c99
7 changed files with 51 additions and 61 deletions
+1 -6
View File
@@ -429,7 +429,7 @@ func TestGetRunnerGroupByName(t *testing.T) {
}
t.Run("Get RunnerGroup by Name", func(t *testing.T) {
runnerGroupID := 1
var runnerGroupID uint64 = 1
runnerGroupName := "test-runner-group"
want := &RunnerGroup{
ID: runnerGroupID,
@@ -1204,11 +1204,6 @@ func TestGetMessage(t *testing.T) {
client, err := NewClient(server.configURLForOrg("my-org"), auth)
require.NoError(t, err)
_, err = client.GetMessage(ctx, server.URL, token, 0, -1)
require.Error(t, err)
// Ensure we don't send requests with negative capacity
assert.False(t, errors.Is(err, &ActionsError{}))
_, err = client.GetMessage(ctx, server.URL, token, 0, 0)
assert.Error(t, err)
var expectedErr *ActionsError