Package list golang-github-nlopes-slack / upstream/0.1.0 slack_test.go
upstream/0.1.0

Tree @upstream/0.1.0 (Download .tar.gz)

slack_test.go @upstream/0.1.0raw · history · blame

package slack

import (
	"log"
	"net/http/httptest"
	"sync"
)

const (
	validToken = "testing-token"
)

var (
	serverAddr string
	once       sync.Once
)

func startServer() {
	server := httptest.NewServer(nil)
	serverAddr = server.Listener.Addr().String()
	log.Print("Test WebSocket server listening on ", serverAddr)
}