Skip to content

Commit

Permalink
Remove syscall invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjlockwood committed Jan 25, 2014
1 parent 6f3e015 commit 76e22d6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/github.com/cmu440/p0/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"math/rand"
"net"
"strconv"
"syscall"
"testing"
"time"
)
Expand Down Expand Up @@ -287,7 +286,6 @@ func (ts *testSystem) checkCount(expected int) error {
}

func testBasic(t *testing.T, name string, numClients, numMessages, timeout int) {
syscall.Getrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{Cur: 64000, Max: 64000})
fmt.Printf("========== %s: %d client(s), %d messages each ==========\n", name, numClients, numMessages)

ts := newTestSystem(t)
Expand Down Expand Up @@ -324,7 +322,6 @@ func testBasic(t *testing.T, name string, numClients, numMessages, timeout int)
}

func testSlowClient(t *testing.T, name string, numMessages, numSlowClients, numNormalClients, slowDelay, timeout int) {
syscall.Getrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{Cur: 64000, Max: 64000})
fmt.Printf("========== %s: %d total clients, %d slow client(s), %d messages each ==========\n",
name, numSlowClients+numNormalClients, numSlowClients, numMessages)

Expand Down Expand Up @@ -409,7 +406,6 @@ func (ts *testSystem) runCountTest(events []*countEvent, timeout int) {
}

func testCount(t *testing.T, name string, timeout int, max int, events ...*countEvent) {
syscall.Getrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{Cur: 64000, Max: 64000})
fmt.Printf("========== %s: %d rounds, up to %d clients started/killed per round ==========\n",
name, len(events), max)

Expand Down

0 comments on commit 76e22d6

Please sign in to comment.