Package list golang-github-nlopes-slack / lintian-fixes/main slack_test.go
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

slack_test.go @lintian-fixes/mainraw · 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)
}