Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

743 B
Raw Blame
/*
 * @Author: LinkLeong [email protected]
 * @Date: 2022-05-08 15:07:31
 * @LastEditors: LinkLeong [email protected]
 * @LastEditTime: 2022-05-09 11:43:30
 * @FilePath: /CasaOS/pkg/utils/network_detection_test.go
 * @Description:
 *
 * Copyright (c) 2022 by LinkLeong [email protected], All Rights Reserved.
 */

package utils

import (
	"fmt"
	"testing"
)

func TestGetResultTest(t *testing.T) {
	t.Skip("This test is always failing. Skipped to unblock releasing - MUST FIX!")

	list := []string{"https://www.google.com", "https://www.bing.com", "https://www.baidu.com"}
	data := make(chan string)
	// data <- "init"
	for _, v := range list {
		go GetNetWorkTypeDetection(data, v)
	}
	result := <-data
	close(data)
	fmt.Println(result)
}