Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

testing: cleanup temporary directory #1528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions supernode/server/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package server

import (
"encoding/json"
"io/ioutil"
"math/rand"
"net"
"net/http"
Expand Down Expand Up @@ -59,8 +58,7 @@ type RouterTestSuite struct {
func (rs *RouterTestSuite) SetUpSuite(c *check.C) {
port := rand.Intn(1000) + 63000
rs.addr = "127.0.0.1:" + strconv.Itoa(port)
tmpDir, err := ioutil.TempDir("/tmp", "supernode-routerTestSuite-")
c.Check(err, check.IsNil)
tmpDir := c.MkDir()

testConf := &config.Config{
BaseProperties: &config.BaseProperties{
Expand Down