summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/syscalls/syscall_test_runner.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syscalls/syscall_test_runner.go b/test/syscalls/syscall_test_runner.go
index 0149afd60..1f2ff9864 100644
--- a/test/syscalls/syscall_test_runner.go
+++ b/test/syscalls/syscall_test_runner.go
@@ -271,7 +271,8 @@ func main() {
// Calculate subslice of tests to run.
shardSize := int(math.Ceil(float64(len(testCases)) / float64(total)))
begin := index * shardSize
- end := ((index + 1) * shardSize) - 1
+ // Set end as begin of next subslice.
+ end := ((index + 1) * shardSize)
if begin > len(testCases) {
// Nothing to run.
return