Package list golang-github-nlopes-slack / debian/latest slack_test.go
debian/latest

Tree @debian/latest (Download .tar.gz)

slack_test.go @debian/latestraw · 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)
}