// Copyright 2014-2015 Chadev. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"os"
	"testing"
)

func TestGetMeetupEvents(t *testing.T) {
	if os.Getenv("CHADEV_MEETUP") == "" {
		t.Skip("no meetup API key set, skipping test")
	}

	_, err := getTalkDetails()
	if err != nil {
		t.Error(err)
	}
}

// Copyright 2014-2015 Chadev. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import "testing"

func TestGetMeetupEvents(t *testing.T) {
	_, err := getTalkDetails()
	if err != nil {
		t.Error(err)
	}
}

--- 
+++ 
@@ -4,9 +4,16 @@
 
 package main
 
-import "testing"
+import (
+	"os"
+	"testing"
+)
 
 func TestGetMeetupEvents(t *testing.T) {
+	if os.Getenv("CHADEV_MEETUP") == "" {
+		t.Skip("no meetup API key set, skipping test")
+	}
+
 	_, err := getTalkDetails()
 	if err != nil {
 		t.Error(err)
Fix tests on Travis CI

Signed-off-by: Adam Jimerson <0a1ce5db568b585e24ec79212f7ab30cdb820af8@gmail.com>
